package com.micosco.taskremind.ui;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.micosco.taskremind.data.Task;
import com.micosco.taskremind.data.TaskList;

import java.util.List;

public class TaskListViewModel extends ViewModel {
    private MutableLiveData<List<Task>> tasks = new MutableLiveData<>();

    public TaskListViewModel() {
        tasks.setValue(TaskList.getInstance().getUnfinished());
    }

    public MutableLiveData<List<Task>> getTasks() {
        return tasks;
    }
}
